<template>
    <div>
        <span>hello vue</span>
        <el-button type="primary" @click="tiaozhuan">跳转到detail</el-button>
    </div>
</template>

<script>
    module.exports = {
        name: 'list',
        data() {
            return {}
        },
        methods: {
            tiaozhuan() {
                this.$router.push({path: '/detail'});
            }
        }
    }
</script>